Pod::Spec.new do |s|
  s.authors      = "杨海金"
  s.name         = "yayagame-sdk"
  s.version      = "0.0.1"
  s.summary      = "yayagame-sdk for Cocoapods convenience."
  s.homepage     = "http://www.yayayouxi.com/"
  s.license      = "MIT"
  s.author       = { "yayagame-sdk" => "support@yayayouxi.com" }
  s.source       = { :git => "https://gitee.com/yanghaijin/yayagame-sdk.git"}
  s.platform     = :ios, "7.0"
  s.requires_arc = true
  #s.resource     = ""
  #s.preserve_paths = ""
  #s.vendored_libraries = ""
  #s.ios.vendored_frameworks = ""
  #s.xcconfig = {
	 # 'LIBRARY_SEARCH_PATHS' => '',
	  #'HEADER_SEARCH_PATHS' => ''
  #}

  # 微信
  s.subspec "WeChat" do |ss|
    ss.source_files = "WeChat/*.{h,m}"
    ss.public_header_files = "WeChat/*.h"
    ss.vendored_libraries = "Wechat/libWeChatSDK.a"
  end
  
  # 闲聊
  s.subspec "XianLiao" do |ss|
    ss.source_files = "XianLiao/*.{h,m}"
    ss.public_header_files = "XianLiao/*.h"
    ss.vendored_libraries = "XianLiao/SugramApi.a"
  end
  
  # 聊呗
  s.subspec "LiaoBei" do |ss|
    ss.source_files = "LiaoBei/*.{h,m}"
    ss.public_header_files = "LiaoBei/*.h"
    ss.ios.vendored_frameworks = "LiaoBei/LBSDK.framework"
  end

  # 钉钉
  s.subspec "DingDing" do |ss|
    ss.source_files = "DingDing/*.{h,m}"
    ss.public_header_files = "DingDing/*.h"
    ss.ios.vendored_frameworks = "DingDing/DTShareKit.framework"
  end

  # 阿里云推送
  s.subspec "AliPush" do |ss|
    ss.source_files = "AliPush/*.{h,m,mm}"
    ss.public_header_files = "AliPush/*.h"
  end

  # OpenUDID
  s.subspec "OpenUDID" do |ss|
    ss.source_files = "OpenUDID/*.{h,m,mm}"
    ss.public_header_files = "OpenUDID/*.h"
  end

  # 苹果自带定位
  s.subspec "Location" do |ss|
    ss.source_files = "Location/*.{h,m,mm}"
    ss.public_header_files = "Location/*.h"
  end

  # 高德地图
  s.subspec "Gaode" do |ss|
    ss.source_files = "Gaode/*.{h,m,mm}"
    ss.public_header_files = "Gaode/*.h"
    ss.ios.vendored_frameworks = "Gaode/AMapLocationKit.framework","Gaode/AMapFoundationKit.framework"
  end

  # 百度地图
  s.subspec "Baidu" do |ss|
    ss.source_files = "Baidu/*.{h,m,mm}"
    ss.public_header_files = "Baidu/*.h"
  end

  # 苹果内购IAP
  s.subspec "IAP" do |ss|
    ss.source_files = "IAP/*.{h,m,mm}"
    ss.public_header_files = "IAP/*.h"
  end

  # NetWork
  s.subspec "NetWork" do |ss|
    ss.source_files = "NetWork/*.{h,m,mm}"
    ss.public_header_files = "NetWork/*.h"
  end

  # 音频音效
  s.subspec "Voice" do |ss|
    ss.source_files = "Voice/*.{h,m,mm}"
    ss.public_header_files = "Voice/*.h"
  end

  # 云层
  s.subspec "YunCeng" do |ss|
    ss.ios.vendored_frameworks = "YunCeng/YunCeng.framework"
  end

  # TalkingData
  s.subspec "TalkingData" do |ss|
    ss.source_files = "TalkingData/*.{h,m,mm}"
    ss.public_header_files = "TalkingData/*.h"
    ss.vendored_libraries = "TalkingData/libTalkingDataGA.a"
  end

  # MagicWindow
  s.subspec "MagicWindow" do |ss|
    ss.source_files = "MagicWindow/*.{h,m,mm}"
    ss.public_header_files = "MagicWindow/*.h"
  end

  # QQ
  s.subspec "Qq" do |ss|
    ss.source_files = "Qq/*.{h,m,mm}"
    ss.public_header_files = "Qq/*.h"
    ss.ios.vendored_frameworks = "Qq/TencentOpenAPI.framework"
    ss.resources = "Qq/TencentOpenApi_IOS_Bundle.bundle"
  end

  # Agora
  s.subspec "Agora" do |ss|
    ss.source_files = "Agora/*.{h,m,mm}"
    ss.public_header_files = "Agora/*.h"
  end

  s.frameworks = "SystemConfiguration"
  s.library = 'z','sqlite3.0'
end